package cn.tedu.qxhouserent.house.service;

import cn.tedu.qxhouserent.commons.pojo.vo.PageData;
import cn.tedu.qxhouserent.house.pojo.param.UserAddNewParam;
import cn.tedu.qxhouserent.house.pojo.param.UserLoginInfoParam;
import cn.tedu.qxhouserent.house.pojo.param.UserUpdateInfoParam;
import cn.tedu.qxhouserent.house.pojo.vo.*;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface UserService {

    void addNew(UserAddNewParam userAddNewParam);

    void deleteById(Long id);

   UserStandardVO getStandardById(Long id);

    void updateById(Long id, UserUpdateInfoParam userUpdateInfoParam);

    PageData<UserListItemVO> list(Integer pageNum);

    PageData<UserListItemVO> list(Integer pageNum, Integer pageSize);

    String login(UserLoginInfoParam userLoginInfoParam);
}
